Bug 809974: Display "Last Updated" date and time in Device Info. r=kaze #6560
Conversation
*/ | ||
#last-update-date { | ||
font-size: 1.4rem; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That’s my only nit: why do we need a specific rule for this item? I have to ask, as we’re trying to improve the UI consistency in the Settings app…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the date and time will overlap the "Last updated" label otherwise. I hunted around for a classname I could reuse but didn't see any -- feel free to enlighten me :). I also found a bug if no Last Updated date was found, so I will push that fix to my branch soon.
Do we have any automated way to test the settings UI code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, I’d suggest to put the date below the label instead of next to it — think of other locales for which the text will be even trickier to fit.
<li>
<small>2012-11-24</small>
<a> Last updated </a>
</li>
@jcarpenter Do you have a preference for the text of Device Info > Last Updated when there wasn't a last updated date / time? Some possibilities: "No update applied yet" |
What about the device install date? Or empty is also fine. Easier for l10n team. |
Let's keep it on the right. Making an exception for this one field would break the consistency of the left-right layout. In the relatively unlikely event that the date exceeds the available space, we can wrap the text. |
@jcarpenter it is very likely that the targeted locales will require more space than English to display the translation of “last update”, and there are two problems with this approach:
Of course, there are other panels where the data is below the heading (e.g. main panel). And for the “Software” item above this “Last Updated” one, @lco has already suggested to use two lines instead of one: https://bugzilla.mozilla.org/show_bug.cgi?id=808892 However, if the priority is to make this “Device information” panel look good in English then we need a better way to divide the space between the heading and the data — e.g. use a fixed width of 50% for heading and data, and wrap the text accordingly. As you can guess, I’d still find this silly. |
@jcarpenter @fabi1cazenave Here's a screenshot of what it currently looks like, if it helps |
@marshall the date string size is stable and predictable, but the heading string size is very dependent on the locale. Your screenshot looks nice for English but I’d much, much prefer to put this on two lines to ensure it’ll still be readable for all locales. |
@fabi1cazenave @jcarpenter new screenshot |
this is fine to me |
@marshall would you please attach this PR to bug 809974 so I can r+ it and merge it? |
Suggested, but it has not been agreed upon internally by UX, and it was not planned for v1. Long term we need a better solution to overruns and collisions. Other mobile OS avoid this by:
What we cannot do is hard code in exceptions case by case. We're going to miss some, inevitably. And it will look terrible if some fields are right aligned, and some are spread across two lines. Consistency matters. I can live with this exception for v1, but in future please wait for UX approval before requesting merge, especially when my last comment explicitly asked for the opposite approach. |
then let's go with the smaller font-size then. |
@marshall please still open a bug and ask r? from somebody else. Thanks! |
So the first smart localization is on the original strings (aka original design), they need to be thinked so the translation will not be longer.
Anyway I don't consider that we should block on UX issue. It can be fixed into a different bug that is not blocking )or you can ask blocking on it if you want) but we need to resolve the functional issues first, even if the UI is not perfect yet. |
Just realized that I understood “ellipsed” instead of “wrapped”, sorry for the confusion. I agree wrapping text would be far more acceptable that truncating it, but it would make the list item bigger (which you might not like).
Other mobile OS have their own graphical widgets, with their pros and cons; at this stage of the project I’d much prefer to first implement what the platform can do easily. |
@fabi1cazenave I've attached the PR to Bug 809974 and marked you for r? Just to be clear -- do I need to revert back to "on the same line" behavior in this pull request? |
@marshall |
@marshall as my opinion regarding localization issues in the Settings app is not relevant, I’ll let you see that with UX. And since @evelynhung jumped in, I think it qualifies her for a review. :-) Thanks for your work, sorry for the confusion here. |
Hi @marshall, in my PR #6771 I've made all fields in two lines, so I think your PR is fine, just need to resolve all conflicts so we can merge it. @jcarpenter If the two-line display is not good for UX, please file another issue, we can address the problem there. Thanks! |
Agreed. I can live with the two lines approach for v1, if the code is already written and merged. We have bigger things to deal with. Everything else in your response I agree with.
|
…pdated Conflicts: apps/settings/index.html apps/settings/style/settings.css
@evelynhung I've merged and tested and all looks good |
@evelynhung is this good to merge? |
Merging, as @evelynhung has already r+’ed your patch. |
Bug 809974: Display "Last Updated" date and time in Device Info. r=evelyn
https://bugzilla.mozilla.org/show_bug.cgi?id=809974